package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-21
 * Time: 2:13
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/say_hi")
    public String sayHi() {
        System.out.println("Hi");
        return "Hi!";
    }
    @RequestMapping("/say_hello")
    public String sayHello() {
        System.out.println("Hello");
        return "Hello!";
    }
}
